// ==UserScript==
// @name          YouTube - No Autoplay (HQ)
// @description   Version 1.0 - Prevents YouTube videos from auto-playing, and also changes the videos to play in the highest quality where possible.
// @version       1.0
// @date          2008-10-19
// @namespace     archonyx@gmail.com
// @include       http://youtube.com/watch*
// @include       http://*.youtube.com/watch*
// @include       http://*.youtube.com/user*
// ==/UserScript==

with (document.getElementById("movie_player")) {
  var fv = getAttribute('flashvars').replace('vq=null', 'vq=2');
  setAttribute('flashvars', fv + '&autoplay=0&lpbf=http://s.ytimg.com/yt/swf/lpbf-vfl54521.swf&lpbb=http://s.ytimg.com/yt/swf/lpbb-vfl54521.swf');
  src += '#';
}
